<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>手机密码输入方式</title> 
<script charset="utf-8" src="./js/mobile-style-password.js"></script>
<script>
window.onload = function(){
	/*
		window.console = {}
		window.console.log = function(){
			var c = document.getElementById('console');
			var t = Array.prototype.slice.call(arguments, 0);
			c.innerHTML = c.innerHTML + '<br/>' + t.join(' ');
		}
	*/

	var f = document.forms[0],
		i = f.elements['pseudo-password'],
		s = document.getElementById('show');
	mm = new ppmm(i, {delay: 2000});
	mm.translate();
	f.onsubmit = function(){
		s.innerHTML = mm.getText();
		return false;
	}
}
</script>
</head>
<body>
<form name="test" method="./" action="GET">
<input type="text" name="pseudo-password" value="" autocomplete="off"/>
<button type="submit">查看</button>
<p id="show"></p>
<div id="console"></div>
</form>
</body>
</html>

